
<link href="https://cdn.bootcss.com/milligram/1.3.0/milligram.min.css" rel="stylesheet">
<div class="container">
    <table>
        <tbody>
            <?php $tmp_day = ''?>
            <?php foreach ($list as $rowid => $row): $row_id = $row['id'];?>
                <?php if($row['add_day'] != $tmp_day): $tmp_day = $row['add_day']; ?>
                    <tr> <td colspan="2"><?= $row['add_day'] ?> &nbsp;更新</td> </tr>
                <?php endif; ?>
                <tr>
                    <td><?= nl2br($row['content']); ?></td>
                    <td style="text-align: right"><a href="http://meiju.hearu.top/topicDetail_<?= $row_id ?>" target="_blank">&gt;</a></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>

<div id="add_note_icon" onclick="addTopic()"></div>

<script>
    function addTopic() {
        window.location = "http://meiju.hearu.top/addTopic";
    }
</script>